package CinemaDevelop;

public class ScreenRoom {
    public SeatingChart sc;
    public String type;

    public ScreenRoom() {
    }

    public ScreenRoom(String type) {
        this.type = type;
        switch (type) {
            case "白银厅":
                sc = new SeatingChart(10, 12);
                break;
            case "黄金厅":
                sc = new SeatingChart(8, 10);
                break;
            case "翡翠厅":
                sc = new SeatingChart(7, 8);
                break;
            case "钻石厅":
                sc = new SeatingChart(7, 8);
                break;
            case "宝石厅":
                sc = new SeatingChart(8, 9);
                break;
            default:
                System.out.println("非有效放映厅！");
                sc = new SeatingChart(0, 0);
        }
    }
}



